from PyQt4 import QtGui
from PyQt4.QtCore import Qt

class TartMonitor(QtGui.QWidget):
        def __init__(self, *args, **kw):
		QtGui.QWidget.__init__(self, *args, **kw)
		self.setGeometry(0, 0, 217, 205)

		bg = QtGui.QLabel(self) 
		bg.setGeometry(0, 0, 217, 205)
		path = "resources/tart_monitor.png"
		bg.setPixmap(QtGui.QPixmap(path))

		text = QtGui.QLabel(self) 
		text.setGeometry(18, 14, 180, 170)
		text.setWordWrap(True)
		text.setAlignment(Qt.AlignVCenter|Qt.AlignHCenter)
		font = QtGui.QFont("White Rabbit", 12)
		text.setFont(font)
		text.setStyleSheet("color:#00a800")
		self.text = text

	def set_text(self, message):
		self.text.setText(message)

if __name__ == "__main__":
	import sys

	app = QtGui.QApplication(sys.argv)

	font_db = QtGui.QFontDatabase()
	font_db.addApplicationFont("resources/whitrabt.ttf")

	top = QtGui.QLabel()
	top.setGeometry(0, 0, 1024, 768)
	path = "resources/wood.jpg"
	top.setPixmap(QtGui.QPixmap(path))

	screen = TartMonitor(top)
	screen.move(50,50)
	screen.set_text(
		"This is a sexy girl that likes to have men look at her."
		"\n\n"
		"She is fond of you and comfortable in your presence"
	)

	top.show()
	sys.exit(app.exec_())


